class Pay{
    constructor(){
        //获取价格
        let money = location.search.split('?').pop()-0;
        // console.log(money);
        // 获取html节点
        let Obj=document.querySelector('.confirmMoney');
        Obj.innerHTML='￥'+money;
        //获取按钮节点
        let button =document.querySelector('.confirmPay');
        // console.log(button);
        button.onclick=()=>{
            // console.log('payments.html?'+money);
            location.assign('payments.html?'+money)
        }
    }
};
new Pay;
